package com.jbinfo.qingcaowan.base.entity;

import java.io.Serializable;
/**
 * 
* @ClassName: CodeInfoKey 
* @Description: TODO 数据字段实体主键
* @author ZhangLei
* @date 2016年6月26日 上午10:16:44
 */
public class CodeInfoKey implements Serializable{
    /** 
	* @Fields serialVersionUID : TODO
	*/ 
	private static final long serialVersionUID = -204197062938338081L;

	private String codeType;

    private String codeKeys;

    public String getCodeType() {
        return codeType;
    }

    public void setCodeType(String codeType) {
        this.codeType = codeType == null ? null : codeType.trim();
    }

    public String getCodeKeys() {
        return codeKeys;
    }

    public void setCodeKeys(String codeKeys) {
        this.codeKeys = codeKeys == null ? null : codeKeys.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CodeInfoKey other = (CodeInfoKey) that;
        return (this.getCodeType() == null ? other.getCodeType() == null : this.getCodeType().equals(other.getCodeType()))
            && (this.getCodeKeys() == null ? other.getCodeKeys() == null : this.getCodeKeys().equals(other.getCodeKeys()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getCodeType() == null) ? 0 : getCodeType().hashCode());
        result = prime * result + ((getCodeKeys() == null) ? 0 : getCodeKeys().hashCode());
        return result;
    }
}